/*
 * @Author: wushengran
 * @Date: 2024-06-03 15:28:03
 * @Description: 
 * 
 * Copyright (c) 2024 by atguigu, All Rights Reserved. 
 */

#ifndef __TIM4_H
#define __TIM4_H

#include "stm32f10x.h"

void TIM4_Init(void);

// 将定时器的开关包装成函数
void TIM4_Start(void);
void TIM4_Stop(void);

// 获取输入信号的频率
double TIM4_GetPWMCycle(void);
double TIM4_GetPWMFreq(void);
uint16_t TIM4_getCCR(void);

double TIM4_GetPWMDutyCycle(void);

#endif
